Optimal. Leaf size=165 \[ \frac {5 (A-15 C) \tan ^{-1}\left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {2} \sqrt {a \sec (c+d x)+a}}\right )}{16 \sqrt {2} a^{5/2} d}+\frac {(A+9 C) \tan (c+d x)}{4 a^2 d \sqrt {a \sec (c+d x)+a}}-\frac {(A+C) \tan (c+d x) \sec ^2(c+d x)}{4 d (a \sec (c+d x)+a)^{5/2}}-\frac {(3 A-13 C) \tan (c+d x)}{16 a d (a \sec (c+d x)+a)^{3/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.46, antiderivative size = 165, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, integrand size = 35, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {4085, 4008, 4001, 3795, 203} \[ \frac {5 (A-15 C) \tan ^{-1}\left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {2} \sqrt {a \sec (c+d x)+a}}\right )}{16 \sqrt {2} a^{5/2} d}+\frac {(A+9 C) \tan (c+d x)}{4 a^2 d \sqrt {a \sec (c+d x)+a}}-\frac {(A+C) \tan (c+d x) \sec ^2(c+d x)}{4 d (a \sec (c+d x)+a)^{5/2}}-\frac {(3 A-13 C) \tan (c+d x)}{16 a d (a \sec (c+d x)+a)^{3/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 203
Rule 3795
Rule 4001
Rule 4008
Rule 4085
Rubi steps
\begin {align*} \int \frac {\sec ^2(c+d x) \left (A+C \sec ^2(c+d x)\right )}{(a+a \sec (c+d x))^{5/2}} \, dx &=-\frac {(A+C) \sec ^2(c+d x) \tan (c+d x)}{4 d (a+a \sec (c+d x))^{5/2}}-\frac {\int \frac {\sec ^2(c+d x) \left (-2 a (A-C)-\frac {1}{2} a (A+9 C) \sec (c+d x)\right )}{(a+a \sec (c+d x))^{3/2}} \, dx}{4 a^2}\\ &=-\frac {(A+C) \sec ^2(c+d x) \tan (c+d x)}{4 d (a+a \sec (c+d x))^{5/2}}-\frac {(3 A-13 C) \tan (c+d x)}{16 a d (a+a \sec (c+d x))^{3/2}}+\frac {\int \frac {\sec (c+d x) \left (\frac {3}{4} a^2 (3 A-13 C)+a^2 (A+9 C) \sec (c+d x)\right )}{\sqrt {a+a \sec (c+d x)}} \, dx}{8 a^4}\\ &=-\frac {(A+C) \sec ^2(c+d x) \tan (c+d x)}{4 d (a+a \sec (c+d x))^{5/2}}-\frac {(3 A-13 C) \tan (c+d x)}{16 a d (a+a \sec (c+d x))^{3/2}}+\frac {(A+9 C) \tan (c+d x)}{4 a^2 d \sqrt {a+a \sec (c+d x)}}+\frac {(5 (A-15 C)) \int \frac {\sec (c+d x)}{\sqrt {a+a \sec (c+d x)}} \, dx}{32 a^2}\\ &=-\frac {(A+C) \sec ^2(c+d x) \tan (c+d x)}{4 d (a+a \sec (c+d x))^{5/2}}-\frac {(3 A-13 C) \tan (c+d x)}{16 a d (a+a \sec (c+d x))^{3/2}}+\frac {(A+9 C) \tan (c+d x)}{4 a^2 d \sqrt {a+a \sec (c+d x)}}-\frac {(5 (A-15 C)) \operatorname {Subst}\left (\int \frac {1}{2 a+x^2} \, dx,x,-\frac {a \tan (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right )}{16 a^2 d}\\ &=\frac {5 (A-15 C) \tan ^{-1}\left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {2} \sqrt {a+a \sec (c+d x)}}\right )}{16 \sqrt {2} a^{5/2} d}-\frac {(A+C) \sec ^2(c+d x) \tan (c+d x)}{4 d (a+a \sec (c+d x))^{5/2}}-\frac {(3 A-13 C) \tan (c+d x)}{16 a d (a+a \sec (c+d x))^{3/2}}+\frac {(A+9 C) \tan (c+d x)}{4 a^2 d \sqrt {a+a \sec (c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 3.89, size = 136, normalized size = 0.82 \[ \frac {-\left (\tan ^3\left (\frac {1}{2} (c+d x)\right ) \sec (c+d x) (10 (A+17 C) \cos (c+d x)+(A+49 C) \cos (2 (c+d x))+A+113 C)\right )-5 \sqrt {2} (A-15 C) \sin (c+d x) \sqrt {\sec (c+d x)-1} \tan ^{-1}\left (\frac {\sqrt {\sec (c+d x)-1}}{\sqrt {2}}\right )}{32 a^2 d (\cos (c+d x)-1) \sqrt {a (\sec (c+d x)+1)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.52, size = 464, normalized size = 2.81 \[ \left [\frac {5 \, \sqrt {2} {\left ({\left (A - 15 \, C\right )} \cos \left (d x + c\right )^{3} + 3 \, {\left (A - 15 \, C\right )} \cos \left (d x + c\right )^{2} + 3 \, {\left (A - 15 \, C\right )} \cos \left (d x + c\right ) + A - 15 \, C\right )} \sqrt {-a} \log \left (-\frac {2 \, \sqrt {2} \sqrt {-a} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \cos \left (d x + c\right ) \sin \left (d x + c\right ) - 3 \, a \cos \left (d x + c\right )^{2} - 2 \, a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )^{2} + 2 \, \cos \left (d x + c\right ) + 1}\right ) + 4 \, {\left ({\left (A + 49 \, C\right )} \cos \left (d x + c\right )^{2} + 5 \, {\left (A + 17 \, C\right )} \cos \left (d x + c\right ) + 32 \, C\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sin \left (d x + c\right )}{64 \, {\left (a^{3} d \cos \left (d x + c\right )^{3} + 3 \, a^{3} d \cos \left (d x + c\right )^{2} + 3 \, a^{3} d \cos \left (d x + c\right ) + a^{3} d\right )}}, -\frac {5 \, \sqrt {2} {\left ({\left (A - 15 \, C\right )} \cos \left (d x + c\right )^{3} + 3 \, {\left (A - 15 \, C\right )} \cos \left (d x + c\right )^{2} + 3 \, {\left (A - 15 \, C\right )} \cos \left (d x + c\right ) + A - 15 \, C\right )} \sqrt {a} \arctan \left (\frac {\sqrt {2} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \cos \left (d x + c\right )}{\sqrt {a} \sin \left (d x + c\right )}\right ) - 2 \, {\left ({\left (A + 49 \, C\right )} \cos \left (d x + c\right )^{2} + 5 \, {\left (A + 17 \, C\right )} \cos \left (d x + c\right ) + 32 \, C\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sin \left (d x + c\right )}{32 \, {\left (a^{3} d \cos \left (d x + c\right )^{3} + 3 \, a^{3} d \cos \left (d x + c\right )^{2} + 3 \, a^{3} d \cos \left (d x + c\right ) + a^{3} d\right )}}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 6.65, size = 286, normalized size = 1.73 \[ \frac {\frac {{\left ({\left (\frac {2 \, {\left (\sqrt {2} A a^{6} \mathrm {sgn}\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 1\right ) + \sqrt {2} C a^{6} \mathrm {sgn}\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 1\right )\right )} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2}}{a^{8}} + \frac {\sqrt {2} A a^{6} \mathrm {sgn}\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 1\right ) + 17 \, \sqrt {2} C a^{6} \mathrm {sgn}\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 1\right )}{a^{8}}\right )} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - \frac {3 \, \sqrt {2} A a^{6} \mathrm {sgn}\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 1\right ) + 83 \, \sqrt {2} C a^{6} \mathrm {sgn}\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 1\right )}{a^{8}}\right )} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )}{\sqrt {-a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + a}} + \frac {5 \, {\left (\sqrt {2} A - 15 \, \sqrt {2} C\right )} \log \left ({\left | -\sqrt {-a} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + \sqrt {-a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + a} \right |}\right )}{\sqrt {-a} a^{2} \mathrm {sgn}\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 1\right )}}{32 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 1.84, size = 597, normalized size = 3.62 \[ -\frac {\sqrt {\frac {a \left (1+\cos \left (d x +c \right )\right )}{\cos \left (d x +c \right )}}\, \left (-1+\cos \left (d x +c \right )\right )^{2} \left (-5 A \left (\cos ^{2}\left (d x +c \right )\right ) \ln \left (\frac {\sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right )-\cos \left (d x +c \right )+1}{\sin \left (d x +c \right )}\right ) \sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right )+75 C \left (\cos ^{2}\left (d x +c \right )\right ) \ln \left (\frac {\sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right )-\cos \left (d x +c \right )+1}{\sin \left (d x +c \right )}\right ) \sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right )-10 A \sin \left (d x +c \right ) \ln \left (\frac {\sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right )-\cos \left (d x +c \right )+1}{\sin \left (d x +c \right )}\right ) \sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \cos \left (d x +c \right )+150 C \sin \left (d x +c \right ) \ln \left (\frac {\sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right )-\cos \left (d x +c \right )+1}{\sin \left (d x +c \right )}\right ) \sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \cos \left (d x +c \right )+2 A \left (\cos ^{3}\left (d x +c \right )\right )-5 A \ln \left (\frac {\sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right )-\cos \left (d x +c \right )+1}{\sin \left (d x +c \right )}\right ) \sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right )+98 C \left (\cos ^{3}\left (d x +c \right )\right )+75 C \ln \left (\frac {\sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right )-\cos \left (d x +c \right )+1}{\sin \left (d x +c \right )}\right ) \sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right )+8 A \left (\cos ^{2}\left (d x +c \right )\right )+72 C \left (\cos ^{2}\left (d x +c \right )\right )-10 A \cos \left (d x +c \right )-106 C \cos \left (d x +c \right )-64 C \right )}{32 d \sin \left (d x +c \right )^{5} a^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {A+\frac {C}{{\cos \left (c+d\,x\right )}^2}}{{\cos \left (c+d\,x\right )}^2\,{\left (a+\frac {a}{\cos \left (c+d\,x\right )}\right )}^{5/2}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\left (A + C \sec ^{2}{\left (c + d x \right )}\right ) \sec ^{2}{\left (c + d x \right )}}{\left (a \left (\sec {\left (c + d x \right )} + 1\right )\right )^{\frac {5}{2}}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________